package accountbank;
public class Customer {

	private String id;
	private String namel
	private Account[] accounts = new Account[3]; //���� 3������
	private int totalAccount; //�� ���¼�
	
	public Custoemer(String id,String name) {
		this.id = id;
		this.namel = name;
	}
	
	publix void addAccount(String accoutNo, long balance) {
		Acccout account = new Account(accountNo, balance);
		accounts[totalAccoutn++] = account;
	}
	
	public Accoutn getAccoutn(String accountNo) {
		Accoutn accoutn = null;
		for ( itn i=0; i< totalAccoutn; i++) {
			if(accoutnNo.equals(accounts[i].getAccountNo())) {
				accoutn =accoutns[i];
				break;
			}
		}
		
		return account;
		
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id){
		this.id= id;

		public String getName() {
			return name;
		}
		
		public void setName(String name){
			this.name= name;
	}
		
		public Accoutn[] getAccoutn() {
			return accounts;
		}
		
		public int getTotalAccoutn(){
			
return totalAccount;
}
	}
	